# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=py3-managesieve
_pkgname=managesieve
pkgver=0.7.1
pkgrel=2
pkgdesc="ManageSieve client library, including user application sieveshell"
url="https://managesieve.readthedocs.io/"
arch="noarch"
license="PSF-2.0 AND GPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
subpackages="$pkgname-pyc"
source="https://gitlab.com/htgoebel/managesieve/-/archive/v$pkgver/managesieve-v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-v$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
943768f2e2b5122b9206bca66c4cfee0137c4f22aedc7601a4a6842db1464aa3859b9023edbb7612db137c98fc43da47569637ec754ed50ae567e6cbdc2a6831  managesieve-v0.7.1.tar.gz
"
